<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <style>
        .center {
            width: 100%;
            margin: 200px auto 0;
            text-align: center;
        }
    </style>
    <body>
        <div class="center">
            <header>
                <!--logout需要和后面的secruity相匹配-->
                <!--登录 就显示-->
                <a th:href="@{/logout}">注销</a>
                <!--未登录 就显示-->
                <a th:href="@{/toLogin}">登录</a>
            </header>
        </div>
        <div class="center">
            <div style="width: 300px;height: 200px;float: left">
                <table>
                    <tr>
                        <th>level1</th>
                    </tr>
                    <tr>
                        <td><a th:href="@{/level1?id=1}">1</a></td>
                        <td><a th:href="@{/level1?id=2}">2</a></td>
                        <td><a th:href="@{/level1?id=3}">3</a></td>
                    </tr>
                </table>
            </div>
            <div style="width: 300px;height: 200px;float: left">
                <table>
                    <tr>
                        <th>level2</th>
                    </tr>
                    <tr>
                        <td><a th:href="@{/level2?id=1}">1</a></td>
                        <td><a th:href="@{/level2?id=2}">2</a></td>
                        <td><a th:href="@{/level2?id=3}">3</a></td>
                    </tr>
                </table>
            </div>
            <div style="width: 300px;height: 200px;float: left">
                <table>
                    <tr>
                        <th>level3</th>
                    </tr>
                    <tr>
                        <td><a th:href="@{/level3?id=1}">1</a></td>
                        <td><a th:href="@{/level3?id=2}">2</a></td>
                        <td><a th:href="@{/level3?id=3}">3</a></td>
                    </tr>
                </table>
            </div>

        </div>
    </body>
</html>